




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.transition.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.transition.entity.Transition;
import com.application.transition.struts.form.TransitionForm;
import com.application.transition.dao.TransitionDAO;
 /**
 * 
 * Description:TransitionService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class TransitionService extends BaseService
{
	private TransitionDAO transitionDAO;

	public TransitionDAO getTransitionDAO() {
		return this.transitionDAO;
	}

	public void setTransitionDAO(TransitionDAO transitionDAO) {
		this.transitionDAO = transitionDAO;
	}
        

        public Transition getTransition(Transition transition) {
		return (Transition) this.getBaseDao().queryByPk(transition, transition.getId());
	}
	
	public Integer getAllCountTransition(TransitionForm transitionForm){
		return this.transitionDAO.getAllCountTransition(transitionForm);
	}
	
	public List<Transition> searchTransition(TransitionForm transitionForm, PageBean pageBean) throws Exception {
		List<Transition> transitionList = (List) this.transitionDAO.searchTransition(transitionForm, pageBean);
		return transitionList;
	}
        
        public void deleteTransitions(TransitionForm transitionForm){
	   this.transitionDAO.deleteTransitions(transitionForm);	 
	}
        public List searchTransition(final TransitionForm transitionForm) {
    		List<Transition> transitionList = (List) this.transitionDAO.searchTransition(transitionForm);
    		return transitionList;
    	}
}
